using DevExpress.XtraEditors;
using DevExpress.XtraNavBar;
using Microsoft.Office.Interop.Excel;
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Net;
using System.Net.Mail;
using System.Reflection;
using System.Windows.Forms;
namespace NoteManger
{
	public class FrmWorkLoadAudit : Form
	{
		private IContainer components = null;
		private ImageList imageList;
		private ContextMenuStrip contextMenuStrip;
		private ToolStripMenuItem anToolStripMenuItem;
		private ToolStripMenuItem 按用户分组ToolStripMenuItem;
		private ToolStripMenuItem 按组名称分组ToolStripMenuItem;
		private ToolStripMenuItem 按人员分类分组ToolStripMenuItem;
		private ToolStripMenuItem 按角色名称分组ToolStripMenuItem;
		private SplitContainerControl splitContainerControl1;
		private NavBarControl navBarControl1;
		private NavBarGroup navBarGroupNoteQuery;
		private NavBarGroupControlContainer navBarGroupControlContainer2;
		private System.Windows.Forms.Button btnbm8xs;
		private System.Windows.Forms.Button btnwsh;
		private System.Windows.Forms.Button btnwj;
		private NavBarGroup navBarGroupOther;
		private DateTimePicker dtpend;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label6;
		private DateTimePicker dtpbegin;
		private System.Windows.Forms.Button btnSendMail;
		private System.Windows.Forms.Button btnExport;
		private SplitContainer splitContainer;
		private ListView listViewNote;
		private RichTextBox richTextBoxInfo;
		private Panel panel1;
		private System.Windows.Forms.Button btnX;
		private System.Windows.Forms.Button btnSendMsg;
		private System.Windows.Forms.ComboBox cbbMangerName;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox tboxComment;
		private RadioButton btnNotPassed;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.CheckBox ckboxRgnoreDate;
		private System.Windows.Forms.ComboBox cbbMonth;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.ComboBox cbbYear;
		private System.Windows.Forms.Label label2;
		private RadioButton rbtnChecked;
		private RadioButton rbtnNotCheck;
		private RadioButton rbtnAll;
		private System.Windows.Forms.ComboBox cbbNoteOwnerName;
		private System.Windows.Forms.ComboBox cbbNoteOwnerID;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.ProgressBar progressBar;
		private NavBarGroupControlContainer navBarGroupControlContainer1;
		private NavBarGroup navBarGroup1;
		private System.Windows.Forms.ComboBox cbbReportMonth;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.ComboBox cbbReportYear;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.CheckBox cbbhlyf;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.TextBox tboxuserid;
		private System.Windows.Forms.Button btnQueryBB;
		private System.Windows.Forms.Button btnExportExcel;
		private bool bHasHide = true;
		private int iOldListViewNoteHeight = 0;
		private int iPubActionCode = 0;
		private string aNoteState = "";
		private string[,] aNoteItems = new string[0, 0];
		private string strserver;
		private string strsender;
		private string strusername;
		private string strpwd;
		private NoteRemote _NoteRemoteObject = null;
		private TLoginInfo _LoginInfo = new TLoginInfo();
		public NoteRemote NoteRemoteObject
		{
			set
			{
				this._NoteRemoteObject = value;
				if (this._NoteRemoteObject != null)
				{
					try
					{
						if (!this._NoteRemoteObject.ConnectionTest())
						{
							MessageBox.Show("远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
							return;
						}
					}
					catch (Exception ex)
					{
						MessageBox.Show(ex.Message + "远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						return;
					}
					string[,] array = new string[0, 0];
					string text = "";
					bool flag = false;
					try
					{
						flag = this._NoteRemoteObject.GetNeedAuditUserList(this._LoginInfo.DepID, this._LoginInfo.GroupID, this._LoginInfo.PurviewID, ref array, ref text);
					}
					catch (Exception ex)
					{
						MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
					if (flag)
					{
						int num = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
						for (int i = 0; i < num; i++)
						{
							this.cbbNoteOwnerID.Items.Add(array[i, 0]);
							this.cbbNoteOwnerName.Items.Add(array[i, 1]);
							this.cbbMangerName.Items.Add(array[i, 1]);
							NavBarItemLink navBarItemLink = this.navBarGroupNoteQuery.AddItem();
							if (array[i, 1].Length == 2)
							{
								array[i, 1] = array[i, 1].Substring(0, 1) + "   " + array[i, 1].Substring(1, 1);
							}
							navBarItemLink.Item.Caption = array[i, 1] + "[" + array[i, 0] + "]";
							navBarItemLink.Item.Tag = i;
							navBarItemLink.Item.SmallImageIndex = 18;
							navBarItemLink.Item.LinkClicked += new NavBarLinkEventHandler(this.Item_LinkClicked);
						}
						this.navBarGroupNoteQuery.Expanded = true;
					}
					else
					{
						MessageBox.Show(text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
				}
			}
		}
		public TLoginInfo LoginInfo
		{
			set
			{
				this._LoginInfo = value;
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.components = new Container();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmWorkLoadAudit));
			this.imageList = new ImageList(this.components);
			this.contextMenuStrip = new ContextMenuStrip(this.components);
			this.anToolStripMenuItem = new ToolStripMenuItem();
			this.按用户分组ToolStripMenuItem = new ToolStripMenuItem();
			this.按组名称分组ToolStripMenuItem = new ToolStripMenuItem();
			this.按人员分类分组ToolStripMenuItem = new ToolStripMenuItem();
			this.按角色名称分组ToolStripMenuItem = new ToolStripMenuItem();
			this.splitContainerControl1 = new SplitContainerControl();
			this.navBarControl1 = new NavBarControl();
			this.navBarGroupNoteQuery = new NavBarGroup();
			this.navBarGroupControlContainer2 = new NavBarGroupControlContainer();
			this.progressBar = new System.Windows.Forms.ProgressBar();
			this.dtpend = new DateTimePicker();
			this.label7 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.dtpbegin = new DateTimePicker();
			this.btnSendMail = new System.Windows.Forms.Button();
			this.btnExport = new System.Windows.Forms.Button();
			this.btnbm8xs = new System.Windows.Forms.Button();
			this.btnwsh = new System.Windows.Forms.Button();
			this.btnwj = new System.Windows.Forms.Button();
			this.navBarGroupControlContainer1 = new NavBarGroupControlContainer();
			this.btnQueryBB = new System.Windows.Forms.Button();
			this.btnExportExcel = new System.Windows.Forms.Button();
			this.label10 = new System.Windows.Forms.Label();
			this.tboxuserid = new System.Windows.Forms.TextBox();
			this.cbbhlyf = new System.Windows.Forms.CheckBox();
			this.cbbReportMonth = new System.Windows.Forms.ComboBox();
			this.label8 = new System.Windows.Forms.Label();
			this.cbbReportYear = new System.Windows.Forms.ComboBox();
			this.label9 = new System.Windows.Forms.Label();
			this.navBarGroupOther = new NavBarGroup();
			this.navBarGroup1 = new NavBarGroup();
			this.splitContainer = new SplitContainer();
			this.listViewNote = new ListView();
			this.cbbNoteOwnerID = new System.Windows.Forms.ComboBox();
			this.richTextBoxInfo = new RichTextBox();
			this.panel1 = new Panel();
			this.btnX = new System.Windows.Forms.Button();
			this.btnSendMsg = new System.Windows.Forms.Button();
			this.cbbMangerName = new System.Windows.Forms.ComboBox();
			this.label5 = new System.Windows.Forms.Label();
			this.tboxComment = new System.Windows.Forms.TextBox();
			this.btnNotPassed = new RadioButton();
			this.label4 = new System.Windows.Forms.Label();
			this.ckboxRgnoreDate = new System.Windows.Forms.CheckBox();
			this.cbbMonth = new System.Windows.Forms.ComboBox();
			this.label3 = new System.Windows.Forms.Label();
			this.cbbYear = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.rbtnChecked = new RadioButton();
			this.rbtnNotCheck = new RadioButton();
			this.rbtnAll = new RadioButton();
			this.cbbNoteOwnerName = new System.Windows.Forms.ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.contextMenuStrip.SuspendLayout();
			((ISupportInitialize)this.splitContainerControl1).BeginInit();
			this.splitContainerControl1.SuspendLayout();
			((ISupportInitialize)this.navBarControl1).BeginInit();
			this.navBarControl1.SuspendLayout();
			this.navBarGroupControlContainer2.SuspendLayout();
			this.navBarGroupControlContainer1.SuspendLayout();
			this.splitContainer.Panel1.SuspendLayout();
			this.splitContainer.Panel2.SuspendLayout();
			this.splitContainer.SuspendLayout();
			this.panel1.SuspendLayout();
			base.SuspendLayout();
			this.imageList.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("imageList.ImageStream");
			this.imageList.TransparentColor = System.Drawing.Color.Transparent;
			this.imageList.Images.SetKeyName(0, "summary.ico");
			this.imageList.Images.SetKeyName(1, "Card.ico");
			this.imageList.Images.SetKeyName(2, "Card-Add.ico");
			this.imageList.Images.SetKeyName(3, "Card-Delete.ico");
			this.imageList.Images.SetKeyName(4, "Mail-Forward.ico");
			this.imageList.Images.SetKeyName(5, "Connect.ico");
			this.imageList.Images.SetKeyName(6, "Certificate.ico");
			this.imageList.Images.SetKeyName(7, "Loginout.ico");
			this.imageList.Images.SetKeyName(8, "key.ico");
			this.imageList.Images.SetKeyName(9, "User-Add.ico");
			this.imageList.Images.SetKeyName(10, "configure.ico");
			this.imageList.Images.SetKeyName(11, "refresh.ico");
			this.imageList.Images.SetKeyName(12, "Card-New.ico");
			this.imageList.Images.SetKeyName(13, "Card-Edit.ico");
			this.imageList.Images.SetKeyName(14, "convert.ico");
			this.imageList.Images.SetKeyName(15, "search.ico");
			this.imageList.Images.SetKeyName(16, "Export.ico");
			this.imageList.Images.SetKeyName(17, "Flow Chart.ico");
			this.imageList.Images.SetKeyName(18, "User-Edit.ico");
			this.imageList.Images.SetKeyName(19, "User-Security-2.ico");
			this.contextMenuStrip.Items.AddRange(new ToolStripItem[]
			{
				this.anToolStripMenuItem,
				this.按用户分组ToolStripMenuItem,
				this.按组名称分组ToolStripMenuItem,
				this.按人员分类分组ToolStripMenuItem,
				this.按角色名称分组ToolStripMenuItem
			});
			this.contextMenuStrip.Name = "contextMenuStrip";
			this.contextMenuStrip.Size = new System.Drawing.Size(171, 114);
			this.anToolStripMenuItem.Name = "anToolStripMenuItem";
			this.anToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
			this.anToolStripMenuItem.Text = "按日志日期分组";
			this.按用户分组ToolStripMenuItem.Name = "按用户分组ToolStripMenuItem";
			this.按用户分组ToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
			this.按用户分组ToolStripMenuItem.Text = "按用户分组";
			this.按组名称分组ToolStripMenuItem.Name = "按组名称分组ToolStripMenuItem";
			this.按组名称分组ToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
			this.按组名称分组ToolStripMenuItem.Text = "按组名称分组";
			this.按人员分类分组ToolStripMenuItem.Name = "按人员分类分组ToolStripMenuItem";
			this.按人员分类分组ToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
			this.按人员分类分组ToolStripMenuItem.Text = "按人员分类分组";
			this.按角色名称分组ToolStripMenuItem.Name = "按角色名称分组ToolStripMenuItem";
			this.按角色名称分组ToolStripMenuItem.Size = new System.Drawing.Size(170, 22);
			this.按角色名称分组ToolStripMenuItem.Text = "按日志审核人分组";
			this.splitContainerControl1.Dock = DockStyle.Fill;
			this.splitContainerControl1.Location = new System.Drawing.Point(0, 0);
			this.splitContainerControl1.Name = "splitContainerControl1";
			this.splitContainerControl1.Panel1.Controls.Add(this.navBarControl1);
			this.splitContainerControl1.Panel1.Text = "Panel1";
			this.splitContainerControl1.Panel2.Controls.Add(this.splitContainer);
			this.splitContainerControl1.Panel2.Controls.Add(this.btnSendMsg);
			this.splitContainerControl1.Panel2.Controls.Add(this.cbbMangerName);
			this.splitContainerControl1.Panel2.Controls.Add(this.label5);
			this.splitContainerControl1.Panel2.Controls.Add(this.tboxComment);
			this.splitContainerControl1.Panel2.Controls.Add(this.btnNotPassed);
			this.splitContainerControl1.Panel2.Controls.Add(this.label4);
			this.splitContainerControl1.Panel2.Controls.Add(this.ckboxRgnoreDate);
			this.splitContainerControl1.Panel2.Controls.Add(this.cbbMonth);
			this.splitContainerControl1.Panel2.Controls.Add(this.label3);
			this.splitContainerControl1.Panel2.Controls.Add(this.cbbYear);
			this.splitContainerControl1.Panel2.Controls.Add(this.label2);
			this.splitContainerControl1.Panel2.Controls.Add(this.rbtnChecked);
			this.splitContainerControl1.Panel2.Controls.Add(this.rbtnNotCheck);
			this.splitContainerControl1.Panel2.Controls.Add(this.rbtnAll);
			this.splitContainerControl1.Panel2.Controls.Add(this.cbbNoteOwnerName);
			this.splitContainerControl1.Panel2.Controls.Add(this.label1);
			this.splitContainerControl1.Panel2.Text = "Panel2";
			this.splitContainerControl1.Size = new System.Drawing.Size(793, 468);
			this.splitContainerControl1.SplitterPosition = 194;
			this.splitContainerControl1.TabIndex = 52;
			this.splitContainerControl1.Text = "splitContainerControl1";
			this.navBarControl1.ActiveGroup = this.navBarGroupNoteQuery;
			this.navBarControl1.ContentButtonHint = null;
			this.navBarControl1.Controls.Add(this.navBarGroupControlContainer2);
			this.navBarControl1.Controls.Add(this.navBarGroupControlContainer1);
			this.navBarControl1.Dock = DockStyle.Fill;
			this.navBarControl1.Font = new System.Drawing.Font("宋体", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.navBarControl1.Groups.AddRange(new NavBarGroup[]
			{
				this.navBarGroupNoteQuery,
				this.navBarGroupOther,
				this.navBarGroup1
			});
			this.navBarControl1.Location = new System.Drawing.Point(0, 0);
			this.navBarControl1.Name = "navBarControl1";
			this.navBarControl1.OptionsNavPane.ExpandedWidth = 140;
			this.navBarControl1.Size = new System.Drawing.Size(190, 464);
			this.navBarControl1.SmallImages = this.imageList;
			this.navBarControl1.TabIndex = 52;
			this.navBarControl1.Text = "navBarControl1";
			this.navBarGroupNoteQuery.Caption = "审核状态查询";
			this.navBarGroupNoteQuery.Expanded = true;
			this.navBarGroupNoteQuery.GroupStyle = NavBarGroupStyle.SmallIconsList;
			this.navBarGroupNoteQuery.Name = "navBarGroupNoteQuery";
			this.navBarGroupControlContainer2.Controls.Add(this.progressBar);
			this.navBarGroupControlContainer2.Controls.Add(this.dtpend);
			this.navBarGroupControlContainer2.Controls.Add(this.label7);
			this.navBarGroupControlContainer2.Controls.Add(this.label6);
			this.navBarGroupControlContainer2.Controls.Add(this.dtpbegin);
			this.navBarGroupControlContainer2.Controls.Add(this.btnSendMail);
			this.navBarGroupControlContainer2.Controls.Add(this.btnExport);
			this.navBarGroupControlContainer2.Controls.Add(this.btnbm8xs);
			this.navBarGroupControlContainer2.Controls.Add(this.btnwsh);
			this.navBarGroupControlContainer2.Controls.Add(this.btnwj);
			this.navBarGroupControlContainer2.Name = "navBarGroupControlContainer2";
			this.navBarGroupControlContainer2.Size = new System.Drawing.Size(186, 231);
			this.navBarGroupControlContainer2.TabIndex = 1;
			this.progressBar.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.progressBar.Location = new System.Drawing.Point(11, 211);
			this.progressBar.Name = "progressBar";
			this.progressBar.Size = new System.Drawing.Size(167, 12);
			this.progressBar.TabIndex = 71;
			this.progressBar.Visible = false;
			this.dtpend.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.dtpend.Location = new System.Drawing.Point(28, 38);
			this.dtpend.Name = "dtpend";
			this.dtpend.Size = new System.Drawing.Size(150, 21);
			this.dtpend.TabIndex = 52;
			this.label7.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.label7.AutoSize = true;
			this.label7.BackColor = System.Drawing.Color.Transparent;
			this.label7.Location = new System.Drawing.Point(11, 41);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(17, 12);
			this.label7.TabIndex = 53;
			this.label7.Text = "到";
			this.label6.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.label6.AutoSize = true;
			this.label6.BackColor = System.Drawing.Color.Transparent;
			this.label6.Location = new System.Drawing.Point(11, 13);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(17, 12);
			this.label6.TabIndex = 51;
			this.label6.Text = "从";
			this.dtpbegin.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.dtpbegin.Location = new System.Drawing.Point(28, 9);
			this.dtpbegin.Name = "dtpbegin";
			this.dtpbegin.Size = new System.Drawing.Size(150, 21);
			this.dtpbegin.TabIndex = 50;
			this.btnSendMail.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.btnSendMail.Cursor = Cursors.Hand;
			this.btnSendMail.Enabled = false;
			this.btnSendMail.Location = new System.Drawing.Point(10, 181);
			this.btnSendMail.Name = "btnSendMail";
			this.btnSendMail.Size = new System.Drawing.Size(168, 23);
			this.btnSendMail.TabIndex = 49;
			this.btnSendMail.Text = "邮件通知(&M)";
			this.btnSendMail.UseVisualStyleBackColor = true;
			this.btnSendMail.Click += new EventHandler(this.btnSendMail_Click);
			this.btnExport.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.btnExport.Cursor = Cursors.Hand;
			this.btnExport.Enabled = false;
			this.btnExport.Location = new System.Drawing.Point(9, 152);
			this.btnExport.Name = "btnExport";
			this.btnExport.Size = new System.Drawing.Size(169, 23);
			this.btnExport.TabIndex = 48;
			this.btnExport.Text = "导出Excel(&E)";
			this.btnExport.UseVisualStyleBackColor = true;
			this.btnExport.Click += new EventHandler(this.btnExport_Click);
			this.btnbm8xs.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.btnbm8xs.Cursor = Cursors.Hand;
			this.btnbm8xs.Location = new System.Drawing.Point(10, 123);
			this.btnbm8xs.Name = "btnbm8xs";
			this.btnbm8xs.Size = new System.Drawing.Size(168, 23);
			this.btnbm8xs.TabIndex = 43;
			this.btnbm8xs.Text = "工作量不满8小时的日志(&H)";
			this.btnbm8xs.UseVisualStyleBackColor = true;
			this.btnbm8xs.Click += new EventHandler(this.btnbm8xs_Click);
			this.btnwsh.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.btnwsh.Cursor = Cursors.Hand;
			this.btnwsh.Location = new System.Drawing.Point(10, 94);
			this.btnwsh.Name = "btnwsh";
			this.btnwsh.Size = new System.Drawing.Size(168, 23);
			this.btnwsh.TabIndex = 42;
			this.btnwsh.Text = "未审核日志信息(&S)";
			this.btnwsh.UseVisualStyleBackColor = true;
			this.btnwsh.Click += new EventHandler(this.btnwsh_Click);
			this.btnwj.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.btnwj.Cursor = Cursors.Hand;
			this.btnwj.Location = new System.Drawing.Point(10, 65);
			this.btnwj.Name = "btnwj";
			this.btnwj.Size = new System.Drawing.Size(168, 23);
			this.btnwj.TabIndex = 41;
			this.btnwj.Text = "未交日志人员信息(&P)";
			this.btnwj.UseVisualStyleBackColor = true;
			this.btnwj.Click += new EventHandler(this.btnwj_Click);
			this.navBarGroupControlContainer1.Controls.Add(this.btnQueryBB);
			this.navBarGroupControlContainer1.Controls.Add(this.btnExportExcel);
			this.navBarGroupControlContainer1.Controls.Add(this.label10);
			this.navBarGroupControlContainer1.Controls.Add(this.tboxuserid);
			this.navBarGroupControlContainer1.Controls.Add(this.cbbhlyf);
			this.navBarGroupControlContainer1.Controls.Add(this.cbbReportMonth);
			this.navBarGroupControlContainer1.Controls.Add(this.label8);
			this.navBarGroupControlContainer1.Controls.Add(this.cbbReportYear);
			this.navBarGroupControlContainer1.Controls.Add(this.label9);
			this.navBarGroupControlContainer1.Name = "navBarGroupControlContainer1";
			this.navBarGroupControlContainer1.Size = new System.Drawing.Size(186, 156);
			this.navBarGroupControlContainer1.TabIndex = 2;
			this.btnQueryBB.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.btnQueryBB.Cursor = Cursors.Hand;
			this.btnQueryBB.Location = new System.Drawing.Point(11, 95);
			this.btnQueryBB.Name = "btnQueryBB";
			this.btnQueryBB.Size = new System.Drawing.Size(162, 23);
			this.btnQueryBB.TabIndex = 69;
			this.btnQueryBB.Text = "查询(&Q)";
			this.btnQueryBB.UseVisualStyleBackColor = true;
			this.btnQueryBB.Click += new EventHandler(this.btnQueryBB_Click);
			this.btnExportExcel.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.btnExportExcel.Cursor = Cursors.Hand;
			this.btnExportExcel.Enabled = false;
			this.btnExportExcel.Location = new System.Drawing.Point(11, 124);
			this.btnExportExcel.Name = "btnExportExcel";
			this.btnExportExcel.Size = new System.Drawing.Size(162, 23);
			this.btnExportExcel.TabIndex = 68;
			this.btnExportExcel.Text = "导出Excel(&E)";
			this.btnExportExcel.UseVisualStyleBackColor = true;
			this.btnExportExcel.Click += new EventHandler(this.btnExportExcel_Click);
			this.label10.AutoSize = true;
			this.label10.BackColor = System.Drawing.Color.Transparent;
			this.label10.ForeColor = System.Drawing.Color.Black;
			this.label10.Location = new System.Drawing.Point(9, 71);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(29, 12);
			this.label10.TabIndex = 67;
			this.label10.Text = "工号";
			this.tboxuserid.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.tboxuserid.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.tboxuserid.Location = new System.Drawing.Point(40, 66);
			this.tboxuserid.Name = "tboxuserid";
			this.tboxuserid.Size = new System.Drawing.Size(133, 23);
			this.tboxuserid.TabIndex = 66;
			this.cbbhlyf.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.cbbhlyf.AutoSize = true;
			this.cbbhlyf.BackColor = System.Drawing.Color.Transparent;
			this.cbbhlyf.Cursor = Cursors.Hand;
			this.cbbhlyf.ForeColor = System.Drawing.Color.Black;
			this.cbbhlyf.Location = new System.Drawing.Point(96, 39);
			this.cbbhlyf.Name = "cbbhlyf";
			this.cbbhlyf.Size = new System.Drawing.Size(72, 16);
			this.cbbhlyf.TabIndex = 65;
			this.cbbhlyf.Text = "忽略月份";
			this.cbbhlyf.UseVisualStyleBackColor = false;
			this.cbbReportMonth.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbReportMonth.FormattingEnabled = true;
			this.cbbReportMonth.Items.AddRange(new object[]
			{
				"01",
				"02",
				"03",
				"04",
				"05",
				"06",
				"07",
				"08",
				"09",
				"10",
				"11",
				"12"
			});
			this.cbbReportMonth.Location = new System.Drawing.Point(40, 37);
			this.cbbReportMonth.Name = "cbbReportMonth";
			this.cbbReportMonth.Size = new System.Drawing.Size(41, 20);
			this.cbbReportMonth.TabIndex = 64;
			this.label8.AutoSize = true;
			this.label8.BackColor = System.Drawing.Color.Transparent;
			this.label8.ForeColor = System.Drawing.Color.Black;
			this.label8.Location = new System.Drawing.Point(9, 42);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(29, 12);
			this.label8.TabIndex = 63;
			this.label8.Text = "月份";
			this.cbbReportYear.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.cbbReportYear.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbReportYear.FormattingEnabled = true;
			this.cbbReportYear.Items.AddRange(new object[]
			{
				"2008",
				"2009",
				"2010",
				"2011",
				"2012",
				"2013",
				"2014",
				"2015",
				"2016",
				"2017",
				"2018",
				"2019",
				"2020"
			});
			this.cbbReportYear.Location = new System.Drawing.Point(40, 11);
			this.cbbReportYear.Name = "cbbReportYear";
			this.cbbReportYear.Size = new System.Drawing.Size(133, 20);
			this.cbbReportYear.TabIndex = 62;
			this.label9.AutoSize = true;
			this.label9.BackColor = System.Drawing.Color.Transparent;
			this.label9.ForeColor = System.Drawing.Color.Black;
			this.label9.Location = new System.Drawing.Point(9, 14);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(29, 12);
			this.label9.TabIndex = 61;
			this.label9.Text = "年份";
			this.navBarGroupOther.Caption = "其它任务";
			this.navBarGroupOther.ControlContainer = this.navBarGroupControlContainer2;
			this.navBarGroupOther.GroupClientHeight = 233;
			this.navBarGroupOther.GroupStyle = NavBarGroupStyle.ControlContainer;
			this.navBarGroupOther.Name = "navBarGroupOther";
			this.navBarGroup1.Caption = "工作量报表";
			this.navBarGroup1.ControlContainer = this.navBarGroupControlContainer1;
			this.navBarGroup1.GroupClientHeight = 158;
			this.navBarGroup1.GroupStyle = NavBarGroupStyle.ControlContainer;
			this.navBarGroup1.Name = "navBarGroup1";
			this.splitContainer.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.splitContainer.Location = new System.Drawing.Point(6, 33);
			this.splitContainer.Name = "splitContainer";
			this.splitContainer.Orientation = Orientation.Horizontal;
			this.splitContainer.Panel1.Controls.Add(this.listViewNote);
			this.splitContainer.Panel1.Controls.Add(this.cbbNoteOwnerID);
			this.splitContainer.Panel2.Controls.Add(this.richTextBoxInfo);
			this.splitContainer.Panel2.Controls.Add(this.panel1);
			this.splitContainer.Panel2MinSize = 0;
			this.splitContainer.Size = new System.Drawing.Size(582, 392);
			this.splitContainer.SplitterDistance = 287;
			this.splitContainer.TabIndex = 69;
			this.listViewNote.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.listViewNote.FullRowSelect = true;
			this.listViewNote.GridLines = true;
			this.listViewNote.HideSelection = false;
			this.listViewNote.Location = new System.Drawing.Point(3, 3);
			this.listViewNote.MultiSelect = false;
			this.listViewNote.Name = "listViewNote";
			this.listViewNote.ShowItemToolTips = true;
			this.listViewNote.Size = new System.Drawing.Size(576, 281);
			this.listViewNote.SmallImageList = this.imageList;
			this.listViewNote.TabIndex = 24;
			this.listViewNote.UseCompatibleStateImageBehavior = false;
			this.listViewNote.View = View.Details;
			this.listViewNote.SelectedIndexChanged += new EventHandler(this.listViewNote_SelectedIndexChanged);
			this.cbbNoteOwnerID.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.cbbNoteOwnerID.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbNoteOwnerID.FormattingEnabled = true;
			this.cbbNoteOwnerID.Location = new System.Drawing.Point(256, 146);
			this.cbbNoteOwnerID.Name = "cbbNoteOwnerID";
			this.cbbNoteOwnerID.Size = new System.Drawing.Size(45, 20);
			this.cbbNoteOwnerID.TabIndex = 56;
			this.cbbNoteOwnerID.Visible = false;
			this.richTextBoxInfo.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.richTextBoxInfo.BorderStyle = BorderStyle.None;
			this.richTextBoxInfo.Font = new System.Drawing.Font("宋体", 12f, System.Drawing.FontStyle.Bold);
			this.richTextBoxInfo.Location = new System.Drawing.Point(16, 3);
			this.richTextBoxInfo.Name = "richTextBoxInfo";
			this.richTextBoxInfo.Size = new System.Drawing.Size(562, 95);
			this.richTextBoxInfo.TabIndex = 1;
			this.richTextBoxInfo.Text = "";
			this.panel1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left);
			this.panel1.BackColor = System.Drawing.Color.White;
			this.panel1.Controls.Add(this.btnX);
			this.panel1.Location = new System.Drawing.Point(3, 3);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(20, 98);
			this.panel1.TabIndex = 27;
			this.btnX.Cursor = Cursors.Hand;
			this.btnX.FlatStyle = FlatStyle.Flat;
			this.btnX.Font = new System.Drawing.Font("宋体", 5.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			this.btnX.Location = new System.Drawing.Point(1, 0);
			this.btnX.Name = "btnX";
			this.btnX.Size = new System.Drawing.Size(12, 12);
			this.btnX.TabIndex = 27;
			this.btnX.Text = "X";
			this.btnX.UseVisualStyleBackColor = true;
			this.btnX.Click += new EventHandler(this.btnX_Click);
			this.btnSendMsg.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnSendMsg.Enabled = false;
			this.btnSendMsg.Location = new System.Drawing.Point(514, 432);
			this.btnSendMsg.Name = "btnSendMsg";
			this.btnSendMsg.Size = new System.Drawing.Size(75, 23);
			this.btnSendMsg.TabIndex = 67;
			this.btnSendMsg.Text = "发送(&S)";
			this.btnSendMsg.UseVisualStyleBackColor = true;
			this.btnSendMsg.Click += new EventHandler(this.btnSend_Click);
			this.cbbMangerName.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.cbbMangerName.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbMangerName.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.cbbMangerName.FormattingEnabled = true;
			this.cbbMangerName.Location = new System.Drawing.Point(363, 433);
			this.cbbMangerName.Name = "cbbMangerName";
			this.cbbMangerName.Size = new System.Drawing.Size(145, 22);
			this.cbbMangerName.TabIndex = 66;
			this.label5.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.label5.AutoSize = true;
			this.label5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label5.Location = new System.Drawing.Point(268, 439);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(89, 12);
			this.label5.TabIndex = 65;
			this.label5.Text = "反馈信息接受人";
			this.tboxComment.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.tboxComment.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.tboxComment.Location = new System.Drawing.Point(136, 434);
			this.tboxComment.Name = "tboxComment";
			this.tboxComment.Size = new System.Drawing.Size(126, 23);
			this.tboxComment.TabIndex = 64;
			this.btnNotPassed.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.btnNotPassed.AutoSize = true;
			this.btnNotPassed.Cursor = Cursors.Hand;
			this.btnNotPassed.ForeColor = System.Drawing.Color.Red;
			this.btnNotPassed.Location = new System.Drawing.Point(541, 7);
			this.btnNotPassed.Name = "btnNotPassed";
			this.btnNotPassed.Size = new System.Drawing.Size(47, 16);
			this.btnNotPassed.TabIndex = 62;
			this.btnNotPassed.Text = "置疑";
			this.btnNotPassed.UseVisualStyleBackColor = true;
			this.btnNotPassed.CheckedChanged += new EventHandler(this.btnNotPassed_CheckedChanged);
			this.label4.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.label4.AutoSize = true;
			this.label4.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label4.Location = new System.Drawing.Point(5, 439);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(125, 12);
			this.label4.TabIndex = 63;
			this.label4.Text = "异常审核反馈信息说明";
			this.ckboxRgnoreDate.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.ckboxRgnoreDate.AutoSize = true;
			this.ckboxRgnoreDate.Cursor = Cursors.Hand;
			this.ckboxRgnoreDate.Location = new System.Drawing.Point(288, 8);
			this.ckboxRgnoreDate.Name = "ckboxRgnoreDate";
			this.ckboxRgnoreDate.Size = new System.Drawing.Size(72, 16);
			this.ckboxRgnoreDate.TabIndex = 61;
			this.ckboxRgnoreDate.Text = "忽略月份";
			this.ckboxRgnoreDate.UseVisualStyleBackColor = true;
			this.ckboxRgnoreDate.CheckedChanged += new EventHandler(this.ckboxRgnoreDate_CheckedChanged);
			this.cbbMonth.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.cbbMonth.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbMonth.FormattingEnabled = true;
			this.cbbMonth.Items.AddRange(new object[]
			{
				"01",
				"02",
				"03",
				"04",
				"05",
				"06",
				"07",
				"08",
				"09",
				"10",
				"11",
				"12"
			});
			this.cbbMonth.Location = new System.Drawing.Point(244, 5);
			this.cbbMonth.Name = "cbbMonth";
			this.cbbMonth.Size = new System.Drawing.Size(41, 20);
			this.cbbMonth.TabIndex = 60;
			this.cbbMonth.SelectedIndexChanged += new EventHandler(this.cbbMonth_SelectedIndexChanged);
			this.label3.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(216, 9);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(29, 12);
			this.label3.TabIndex = 59;
			this.label3.Text = "月份";
			this.cbbYear.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.cbbYear.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbYear.FormattingEnabled = true;
			this.cbbYear.Items.AddRange(new object[]
			{
				"2008",
				"2009",
				"2010",
				"2011",
				"2012",
				"2013",
				"2014",
				"2015",
				"2016",
				"2017",
				"2018",
				"2019",
				"2020"
			});
			this.cbbYear.Location = new System.Drawing.Point(149, 5);
			this.cbbYear.Name = "cbbYear";
			this.cbbYear.Size = new System.Drawing.Size(64, 20);
			this.cbbYear.TabIndex = 58;
			this.cbbYear.SelectedIndexChanged += new EventHandler(this.cbbYear_SelectedIndexChanged);
			this.label2.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(114, 10);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(29, 12);
			this.label2.TabIndex = 57;
			this.label2.Text = "年份";
			this.rbtnChecked.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.rbtnChecked.AutoSize = true;
			this.rbtnChecked.Cursor = Cursors.Hand;
			this.rbtnChecked.Location = new System.Drawing.Point(479, 7);
			this.rbtnChecked.Name = "rbtnChecked";
			this.rbtnChecked.Size = new System.Drawing.Size(59, 16);
			this.rbtnChecked.TabIndex = 55;
			this.rbtnChecked.Text = "已审核";
			this.rbtnChecked.UseVisualStyleBackColor = true;
			this.rbtnChecked.CheckedChanged += new EventHandler(this.rbtnChecked_CheckedChanged);
			this.rbtnNotCheck.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.rbtnNotCheck.AutoSize = true;
			this.rbtnNotCheck.Cursor = Cursors.Hand;
			this.rbtnNotCheck.Location = new System.Drawing.Point(418, 7);
			this.rbtnNotCheck.Name = "rbtnNotCheck";
			this.rbtnNotCheck.Size = new System.Drawing.Size(59, 16);
			this.rbtnNotCheck.TabIndex = 54;
			this.rbtnNotCheck.Text = "未审核";
			this.rbtnNotCheck.UseVisualStyleBackColor = true;
			this.rbtnNotCheck.CheckedChanged += new EventHandler(this.rbtnNotCheck_CheckedChanged);
			this.rbtnAll.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.rbtnAll.AutoSize = true;
			this.rbtnAll.Checked = true;
			this.rbtnAll.Cursor = Cursors.Hand;
			this.rbtnAll.Location = new System.Drawing.Point(365, 7);
			this.rbtnAll.Name = "rbtnAll";
			this.rbtnAll.Size = new System.Drawing.Size(47, 16);
			this.rbtnAll.TabIndex = 53;
			this.rbtnAll.TabStop = true;
			this.rbtnAll.Text = "全部";
			this.rbtnAll.UseVisualStyleBackColor = true;
			this.rbtnAll.CheckedChanged += new EventHandler(this.rbtnAll_CheckedChanged);
			this.cbbNoteOwnerName.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.cbbNoteOwnerName.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbNoteOwnerName.FormattingEnabled = true;
			this.cbbNoteOwnerName.Location = new System.Drawing.Point(76, 5);
			this.cbbNoteOwnerName.Name = "cbbNoteOwnerName";
			this.cbbNoteOwnerName.Size = new System.Drawing.Size(32, 20);
			this.cbbNoteOwnerName.TabIndex = 52;
			this.cbbNoteOwnerName.SelectedIndexChanged += new EventHandler(this.cbbNoteOwnerNames_SelectedIndexChanged);
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(4, 10);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(65, 12);
			this.label1.TabIndex = 51;
			this.label1.Text = "日志所有者";
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(793, 468);
			base.Controls.Add(this.splitContainerControl1);
			base.Name = "FrmWorkLoadAudit";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "工作日志审核状态查询";
			base.WindowState = FormWindowState.Maximized;
			base.Load += new EventHandler(this.FrmWorkLoadAudit_Load);
			this.contextMenuStrip.ResumeLayout(false);
			((ISupportInitialize)this.splitContainerControl1).EndInit();
			this.splitContainerControl1.ResumeLayout(false);
			((ISupportInitialize)this.navBarControl1).EndInit();
			this.navBarControl1.ResumeLayout(false);
			this.navBarGroupControlContainer2.ResumeLayout(false);
			this.navBarGroupControlContainer2.PerformLayout();
			this.navBarGroupControlContainer1.ResumeLayout(false);
			this.navBarGroupControlContainer1.PerformLayout();
			this.splitContainer.Panel1.ResumeLayout(false);
			this.splitContainer.Panel2.ResumeLayout(false);
			this.splitContainer.ResumeLayout(false);
			this.panel1.ResumeLayout(false);
			base.ResumeLayout(false);
		}
		private void Item_LinkClicked(object sender, NavBarLinkEventArgs e)
		{
			if (e.Link.Item != null)
			{
				this.cbbNoteOwnerName.SelectedIndex = Convert.ToInt32(e.Link.Item.Tag);
			}
		}
		public FrmWorkLoadAudit()
		{
			this.InitializeComponent();
		}
		private void CreateColumn()
		{
			this.listViewNote.Items.Clear();
			this.listViewNote.Columns.Clear();
			ColumnHeader columnHeader = new ColumnHeader();
			columnHeader.Text = "编号";
			columnHeader.Width = 75;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "日期";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "主题";
			columnHeader.Width = 200;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "工作量";
			columnHeader.Width = 60;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "正文";
			columnHeader.Width = 0;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "状态";
			columnHeader.Width = 60;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "创建日期";
			columnHeader.Width = 0;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "创建时间";
			columnHeader.Width = 0;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "置疑说明";
			columnHeader.Width = 150;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "审核人";
			columnHeader.Width = 90;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "审核日期";
			columnHeader.Width = 75;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "审核时间";
			columnHeader.Width = 75;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "核定饱和系数";
			columnHeader.Width = 90;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
		}
		private void CreateColumn2(int iCreateFlag)
		{
			this.listViewNote.Items.Clear();
			this.listViewNote.Columns.Clear();
			ColumnHeader columnHeader = new ColumnHeader();
			columnHeader.Text = "日志日期";
			columnHeader.Width = 120;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "星期";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "用户代码";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "姓名";
			columnHeader.Width = 120;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "组名称";
			columnHeader.Width = 120;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "人员分类";
			columnHeader.Width = 120;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "角色名称";
			columnHeader.Width = 120;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "日志审核人";
			columnHeader.Width = 120;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			if (iCreateFlag == 2)
			{
				columnHeader = new ColumnHeader();
				columnHeader.Text = "汇总工作量";
				columnHeader.Width = 150;
				columnHeader.TextAlign = HorizontalAlignment.Center;
				this.listViewNote.Columns.Add(columnHeader);
			}
			else
			{
				columnHeader = new ColumnHeader();
				columnHeader.Text = "状态";
				columnHeader.Width = 150;
				columnHeader.TextAlign = HorizontalAlignment.Center;
				this.listViewNote.Columns.Add(columnHeader);
			}
			if (iCreateFlag == 0)
			{
				columnHeader = new ColumnHeader();
				columnHeader.Text = "邮件地址";
				columnHeader.Width = 150;
				columnHeader.TextAlign = HorizontalAlignment.Center;
				this.listViewNote.Columns.Add(columnHeader);
			}
		}
		private void CreateColumnReport()
		{
			this.listViewNote.Items.Clear();
			this.listViewNote.Columns.Clear();
			ColumnHeader columnHeader = new ColumnHeader();
			columnHeader.Text = "用户代码";
			columnHeader.Width = 60;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "姓名";
			columnHeader.Width = 75;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "组名";
			columnHeader.Width = 70;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "角色名称";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "人员分类名称";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "日志数";
			columnHeader.Width = 50;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "日志明细数";
			columnHeader.Width = 80;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "合计工作量";
			columnHeader.Width = 80;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "核定工作量";
			columnHeader.Width = 80;
			columnHeader.TextAlign = HorizontalAlignment.Left;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "平均核定系数";
			columnHeader.Width = 90;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "月份";
			columnHeader.Width = 65;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "年份";
			columnHeader.Width = 55;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "工作量部门排名";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "工作量组内排名";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "未审核日志明细数";
			columnHeader.Width = 110;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "被置疑日志明细数";
			columnHeader.Width = 110;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "日志详细度";
			columnHeader.Width = 80;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "日志详细度排名";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
			columnHeader = new ColumnHeader();
			columnHeader.Text = "平均工作量";
			columnHeader.Width = 100;
			columnHeader.TextAlign = HorizontalAlignment.Center;
			this.listViewNote.Columns.Add(columnHeader);
		}
		private void FrmWorkLoadAudit_Load(object sender, EventArgs e)
		{
			this.CreateColumn();
			this.cbbYear.Text = DateTime.Now.ToString("yyyy-MM-dd").Substring(0, 4);
			this.cbbMonth.Text = DateTime.Now.ToString("yyyy-MM-dd").Substring(5, 2);
			this.cbbReportYear.Text = DateTime.Now.ToString("yyyy-MM-dd").Substring(0, 4);
			this.cbbReportMonth.Text = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd").Substring(5, 2);
			this.ReadClientConfig();
			this.iPubActionCode = 0;
			this.iOldListViewNoteHeight = this.listViewNote.Height;
			this.btnX_Click(sender, e);
		}
		private void GetDetailNoteList()
		{
			if (this.cbbNoteOwnerName.SelectedIndex != -1)
			{
				this.Text = "工作日志审核状态查询";
				if (this._NoteRemoteObject != null)
				{
					try
					{
						if (!this._NoteRemoteObject.ConnectionTest())
						{
							MessageBox.Show("远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
							return;
						}
					}
					catch (Exception ex)
					{
						MessageBox.Show(ex.Message + "远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						return;
					}
					int selectedIndex = this.cbbNoteOwnerName.SelectedIndex;
					if (selectedIndex != -1)
					{
						string text = "";
						bool flag = false;
						try
						{
							string aNoteYearMonth;
							if (!this.ckboxRgnoreDate.Checked)
							{
								aNoteYearMonth = this.cbbYear.Text + "-" + this.cbbMonth.Text;
							}
							else
							{
								aNoteYearMonth = this.cbbYear.Text;
							}
							flag = this._NoteRemoteObject.GetDetailNoteList(this.cbbNoteOwnerID.Items[selectedIndex].ToString(), this.aNoteState, aNoteYearMonth, ref this.aNoteItems, ref text);
						}
						catch (Exception ex)
						{
							MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
						if (flag)
						{
							this.btnExport.Enabled = false;
							this.btnExportExcel.Enabled = false;
							this.iPubActionCode = 0;
							this.btnSendMail.Enabled = false;
							int num = this.aNoteItems.GetUpperBound(0) - this.aNoteItems.GetLowerBound(0) + 1;
							this.CreateColumn();
							this.listViewNote.BeginUpdate();
							this.listViewNote.Items.Clear();
							this.listViewNote.Groups.Clear();
							for (int i = 0; i < num; i++)
							{
								if (this.aNoteItems[i, 0] == "0")
								{
									DayOfWeek dayOfWeek = Convert.ToDateTime(this.aNoteItems[i, 4]).DayOfWeek;
									string text2 = "";
									switch (dayOfWeek)
									{
									case DayOfWeek.Sunday:
										text2 = "星期日";
										break;
									case DayOfWeek.Monday:
										text2 = "星期一";
										break;
									case DayOfWeek.Tuesday:
										text2 = "星期二";
										break;
									case DayOfWeek.Wednesday:
										text2 = "星期三";
										break;
									case DayOfWeek.Thursday:
										text2 = "星期四";
										break;
									case DayOfWeek.Friday:
										text2 = "星期五";
										break;
									case DayOfWeek.Saturday:
										text2 = "星期六";
										break;
									}
									ListViewGroup group = new ListViewGroup(string.Concat(new string[]
									{
										this.aNoteItems[i, 4],
										" ",
										text2,
										" 合计工作量 = ",
										this.aNoteItems[i, 5],
										" 核定工作量 = ",
										this.aNoteItems[i, 13]
									}));
									this.listViewNote.Groups.Add(group);
								}
								else
								{
									ListViewItem listViewItem = new ListViewItem();
									int index = this.listViewNote.Groups.Count - 1;
									listViewItem.Group = this.listViewNote.Groups[index];
									listViewItem.Text = this.aNoteItems[i, 0];
									listViewItem.SubItems.Add(this.aNoteItems[i, 4]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 2]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 5]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 3]);
									if (this.aNoteItems[i, 6] == "0")
									{
										listViewItem.SubItems.Add("未审核");
										listViewItem.ImageIndex = 1;
									}
									if (this.aNoteItems[i, 6] == "1")
									{
										listViewItem.SubItems.Add("已审核");
										listViewItem.ForeColor = System.Drawing.Color.Blue;
										listViewItem.ImageIndex = 2;
									}
									if (this.aNoteItems[i, 6] == "2")
									{
										listViewItem.SubItems.Add("置疑");
										listViewItem.ForeColor = System.Drawing.Color.Red;
										listViewItem.ImageIndex = 3;
									}
									listViewItem.SubItems.Add(this.aNoteItems[i, 7]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 8]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 9]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 10]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 11]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 12]);
									listViewItem.SubItems.Add(this.aNoteItems[i, 13]);
									this.listViewNote.Items.Add(listViewItem);
								}
							}
							this.listViewNote.EndUpdate();
							this.listViewNote.Refresh();
						}
						else
						{
							MessageBox.Show(text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
					}
				}
			}
		}
		private void QueryWorkLoadReport()
		{
			string text = "";
			string text2 = "1";
			text = this.cbbReportYear.Text;
			if (!this.cbbhlyf.Checked)
			{
				text2 = "0";
				text = text + "-" + this.cbbReportMonth.Text;
			}
			if (this._NoteRemoteObject != null)
			{
				try
				{
					if (!this._NoteRemoteObject.ConnectionTest())
					{
						MessageBox.Show("远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						return;
					}
				}
				catch (Exception ex)
				{
					MessageBox.Show(ex.Message + "远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					return;
				}
				string text3 = "";
				bool flag = false;
				try
				{
					flag = this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
					{
						"exec usp_wn_workloadbb ",
						text2,
						",'",
						text,
						"','",
						this.tboxuserid.Text.Trim(),
						"'"
					}), ref this.aNoteItems, ref text3);
				}
				catch (Exception ex)
				{
					MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				if (flag)
				{
					int num = this.aNoteItems.GetUpperBound(0) - this.aNoteItems.GetLowerBound(0) + 1;
					if (num > 0)
					{
						this.btnExportExcel.Enabled = true;
					}
					else
					{
						this.btnExportExcel.Enabled = false;
					}
					this.CreateColumnReport();
					this.listViewNote.BeginUpdate();
					this.listViewNote.Items.Clear();
					this.listViewNote.Groups.Clear();
					for (int i = 0; i < num; i++)
					{
						ListViewItem listViewItem = new ListViewItem();
						listViewItem.Text = this.aNoteItems[i, 0];
						listViewItem.SubItems.Add(this.aNoteItems[i, 1]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 2]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 3]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 4]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 5]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 6]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 7]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 8]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 9]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 10]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 11]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 12]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 13]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 14]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 15]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 16]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 17]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 18]);
						if (Convert.ToInt32(this.aNoteItems[i, 14]) != 0 || Convert.ToInt32(this.aNoteItems[i, 15]) != 0)
						{
							listViewItem.ForeColor = System.Drawing.Color.Red;
						}
						listViewItem.ImageIndex = 18;
						this.listViewNote.Items.Add(listViewItem);
					}
					this.listViewNote.EndUpdate();
					this.listViewNote.Refresh();
				}
				else
				{
					MessageBox.Show(text3, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
			}
		}
		private void GetNoteInfos(string sBeginDate, string aEndDate, int iGetFlag)
		{
			if (this._NoteRemoteObject != null)
			{
				try
				{
					if (!this._NoteRemoteObject.ConnectionTest())
					{
						MessageBox.Show("远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						return;
					}
				}
				catch (Exception ex)
				{
					MessageBox.Show(ex.Message + "远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					return;
				}
				string text = "";
				bool flag = false;
				try
				{
					if (iGetFlag == 0)
					{
						string text2 = "0";
						if (MessageBox.Show("查询未交日志信息是否包含周末(星期六、星期天)？", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
						{
							text2 = "1";
						}
						flag = this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
						{
							"exec usp_wn_querywjwshnote '",
							sBeginDate,
							"','",
							aEndDate,
							"',",
							text2,
							",",
							iGetFlag.ToString()
						}), ref this.aNoteItems, ref text);
					}
					else
					{
						flag = this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
						{
							"exec usp_wn_querywjwshnote '",
							sBeginDate,
							"','",
							aEndDate,
							"',0,",
							iGetFlag.ToString()
						}), ref this.aNoteItems, ref text);
					}
				}
				catch (Exception ex)
				{
					MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				if (flag)
				{
					int num = this.aNoteItems.GetUpperBound(0) - this.aNoteItems.GetLowerBound(0) + 1;
					if (num > 0)
					{
						this.btnExport.Enabled = true;
					}
					else
					{
						this.btnExport.Enabled = false;
					}
					this.btnExportExcel.Enabled = false;
					this.CreateColumn2(iGetFlag);
					this.listViewNote.BeginUpdate();
					this.listViewNote.Items.Clear();
					this.listViewNote.Groups.Clear();
					for (int i = 0; i < num; i++)
					{
						ListViewItem listViewItem = new ListViewItem();
						listViewItem.Text = this.aNoteItems[i, 0];
						listViewItem.SubItems.Add(this.aNoteItems[i, 1]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 2]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 3]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 4]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 5]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 6]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 7]);
						listViewItem.SubItems.Add(this.aNoteItems[i, 8]);
						if (iGetFlag == 0)
						{
							listViewItem.SubItems.Add(this.aNoteItems[i, 9]);
						}
						listViewItem.ImageIndex = 1;
						this.listViewNote.Items.Add(listViewItem);
					}
					this.listViewNote.EndUpdate();
					this.listViewNote.Refresh();
				}
				else
				{
					MessageBox.Show(text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
			}
		}
		private void cbbNoteOwnerNames_SelectedIndexChanged(object sender, EventArgs e)
		{
			this.GetDetailNoteList();
		}
		private void cbbYear_SelectedIndexChanged(object sender, EventArgs e)
		{
			this.GetDetailNoteList();
		}
		private void cbbMonth_SelectedIndexChanged(object sender, EventArgs e)
		{
			this.GetDetailNoteList();
		}
		private void rbtnAll_CheckedChanged(object sender, EventArgs e)
		{
			this.aNoteState = "";
			this.GetDetailNoteList();
		}
		private void rbtnNotCheck_CheckedChanged(object sender, EventArgs e)
		{
			this.aNoteState = "0";
			this.GetDetailNoteList();
		}
		private void rbtnChecked_CheckedChanged(object sender, EventArgs e)
		{
			this.aNoteState = "1";
			this.GetDetailNoteList();
		}
		private void btnNotPassed_CheckedChanged(object sender, EventArgs e)
		{
			this.aNoteState = "2";
			this.GetDetailNoteList();
		}
		private void ckboxRgnoreDate_CheckedChanged(object sender, EventArgs e)
		{
			this.cbbMonth.Enabled = !this.ckboxRgnoreDate.Checked;
			this.GetDetailNoteList();
		}
		private void btnSend_Click(object sender, EventArgs e)
		{
			if (this.tboxComment.Text.Trim() == "")
			{
				this.tboxComment.Focus();
				MessageBox.Show("反馈信息内容不能为空！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
			else
			{
				int selectedIndex = this.cbbMangerName.SelectedIndex;
				if (selectedIndex == -1)
				{
					this.cbbMangerName.Focus();
					MessageBox.Show("反馈信息接受者不能为空！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					try
					{
						if (!this._NoteRemoteObject.ConnectionTest())
						{
							MessageBox.Show("远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
							return;
						}
					}
					catch (Exception ex)
					{
						MessageBox.Show(ex.Message + "远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						return;
					}
					int index = -1;
					if (!int.TryParse(this.listViewNote.SelectedIndices[0].ToString(), out index))
					{
						MessageBox.Show("未选择日志！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
					else
					{
						string text = this.listViewNote.Items[index].SubItems[4].Text;
						string text2 = "";
						int selectedIndex2 = this.cbbNoteOwnerName.SelectedIndex;
						if (!this._NoteRemoteObject.CreateAuditFeedBackMessage(this.cbbNoteOwnerID.Items[selectedIndex].ToString(), this.cbbNoteOwnerID.Items[selectedIndex2].ToString(), text, this.tboxComment.Text.Trim(), this._LoginInfo.LoginID, ref text2))
						{
							MessageBox.Show(text2, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
						else
						{
							this.tboxComment.Text = "";
							this.cbbMangerName.SelectedIndex = -1;
							MessageBox.Show("反馈信息发送成功！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
					}
				}
			}
		}
		private void listViewNote_SelectedIndexChanged(object sender, EventArgs e)
		{
			this.btnSendMsg.Enabled = (this.listViewNote.SelectedItems.Count != 0 && this.iPubActionCode == 0);
			if (this.iPubActionCode == 0)
			{
				ListViewItem listViewItem = new ListViewItem();
				if (this.listViewNote.SelectedIndices.Count != 0)
				{
					listViewItem = this.listViewNote.Items[this.listViewNote.SelectedIndices[0]];
					if (listViewItem != null)
					{
						this.richTextBoxInfo.Clear();
						this.richTextBoxInfo.AppendText("主题：" + listViewItem.SubItems[2].Text + '\r');
						this.richTextBoxInfo.AppendText(string.Concat(new object[]
						{
							"正文：",
							'\r',
							"    ",
							listViewItem.SubItems[4].Text
						}));
						if (this.bHasHide)
						{
							this.splitContainer.SplitterDistance = base.Height / 7 * 5;
							this.bHasHide = false;
						}
					}
				}
			}
		}
		private void btnwj_Click(object sender, EventArgs e)
		{
			this.cbbNoteOwnerName.SelectedIndex = -1;
			this.btnExport.Enabled = false;
			this.btnSendMsg.Enabled = false;
			this.iPubActionCode = 1;
			this.btnSendMail.Enabled = true;
			this.btnX_Click(sender, e);
			this.Text = "工作日志审核状态查询 - 未交日志人员信息";
			this.GetNoteInfos(this.dtpbegin.Value.ToString("yyyy-MM-dd"), this.dtpend.Value.ToString("yyyy-MM-dd"), 0);
		}
		private void btnwsh_Click(object sender, EventArgs e)
		{
			this.cbbNoteOwnerName.SelectedIndex = -1;
			this.btnExport.Enabled = false;
			this.btnSendMsg.Enabled = false;
			this.iPubActionCode = 2;
			this.btnSendMail.Enabled = false;
			this.btnX_Click(sender, e);
			this.Text = "工作日志审核状态查询 - 未审核日志信息";
			this.GetNoteInfos(this.dtpbegin.Value.ToString("yyyy-MM-dd"), this.dtpend.Value.ToString("yyyy-MM-dd"), 1);
		}
		private void btnbm8xs_Click(object sender, EventArgs e)
		{
			this.cbbNoteOwnerName.SelectedIndex = -1;
			this.btnExport.Enabled = false;
			this.btnSendMsg.Enabled = false;
			this.iPubActionCode = 3;
			this.btnSendMail.Enabled = false;
			this.btnX_Click(sender, e);
			this.Text = "工作日志审核状态查询 - 工作量不满8小时的日志";
			this.GetNoteInfos(this.dtpbegin.Value.ToString("yyyy-MM-dd"), this.dtpend.Value.ToString("yyyy-MM-dd"), 2);
		}
		private void btnExport_Click(object sender, EventArgs e)
		{
			this.btnExport.Text = "正在导出......";
			this.btnExport.Enabled = false;
			this.btnExport.Refresh();
			Microsoft.Office.Interop.Excel.Application application = null;
			_Worksheet worksheet = null;
			try
			{
				application = new ApplicationClass();
				_Workbook workbook = application.Workbooks.Add(Missing.Value);
				worksheet = (_Worksheet)workbook.ActiveSheet;
			}
			catch
			{
				this.btnExport.Text = "导出Excel(&E)";
				this.btnExport.Enabled = true;
				this.btnExport.Refresh();
				MessageBox.Show("创建Excel进程出现错误，系统中没有安装合适版本的Microsoft Excel产品！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				return;
			}
			string[,] array = new string[1, this.listViewNote.Columns.Count];
			for (int i = 0; i < this.listViewNote.Columns.Count; i++)
			{
				array[0, i] = this.listViewNote.Columns[i].Text;
			}
			Range range = worksheet.get_Range("A1", Type.Missing);
			range = range.get_Resize(array.GetUpperBound(0) + 1, array.GetUpperBound(1) + 1);
			range.Value2 = array;
			range = worksheet.get_Range("A2", Type.Missing);
			range = range.get_Resize(this.aNoteItems.GetUpperBound(0) + 1, this.aNoteItems.GetUpperBound(1) + 1);
			range.Value2 = this.aNoteItems;
			GC.Collect();
			application.Visible = true;
			application = null;
			worksheet = null;
			this.btnExport.Text = "导出Excel(&E)";
			this.btnExport.Enabled = true;
			this.btnExport.Refresh();
		}
		private void ReadClientConfig()
		{
			try
			{
				RegistryKey localMachine = Registry.LocalMachine;
				RegistryKey registryKey = localMachine.OpenSubKey("Software\\KSExpert", true);
				object value = registryKey.GetValue("MailServer");
				if (value != null)
				{
					if (value.ToString() != "")
					{
						this.strserver = value.ToString();
					}
				}
				value = registryKey.GetValue("FromMailAddress");
				if (value == null)
				{
					this.strsender = "";
				}
				else
				{
					this.strsender = value.ToString();
				}
				value = registryKey.GetValue("MailUserName");
				if (value == null)
				{
					this.strusername = "";
				}
				else
				{
					this.strusername = value.ToString();
				}
				value = registryKey.GetValue("MailPwd");
				if (value == null)
				{
					this.strpwd = "";
				}
				else
				{
					this.strpwd = value.ToString();
				}
			}
			catch
			{
			}
		}
		private void btnSendMail_Click(object sender, EventArgs e)
		{
			if (this.iPubActionCode == 1)
			{
				if (this.strserver == "")
				{
					MessageBox.Show("邮件服务器未设置，请在“客户端参数设置模块”中设置邮件服务器！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					if (this.strsender == "")
					{
						MessageBox.Show("发件人地址未设置，请在“客户端参数设置模块”中设置发件人地址！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
					else
					{
						if (this.strusername == "")
						{
							MessageBox.Show("邮箱用户名未设置，请在“客户端参数设置模块”中设置邮箱用户名！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
						else
						{
							if (MessageBox.Show("此次将发送 " + this.listViewNote.Items.Count.ToString() + " 封邮件，确定继续？", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != DialogResult.No)
							{
								this.btnSendMail.Enabled = false;
								this.btnSendMail.Refresh();
								this.progressBar.Visible = true;
								this.progressBar.Minimum = 0;
								this.progressBar.Maximum = this.listViewNote.Items.Count;
								try
								{
									if (!this._NoteRemoteObject.ConnectionTest())
									{
										MessageBox.Show("远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
										return;
									}
								}
								catch (Exception ex)
								{
									MessageBox.Show(ex.Message + "远程连接已断开，请重新连接后再试！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
									return;
								}
								this.splitContainer.SplitterDistance = this.iOldListViewNoteHeight;
								int i = 0;
								while (i < this.listViewNote.Items.Count)
								{
									this.btnSendMail.Text = "正在发送第 " + (i + 1).ToString() + " 封邮件...";
									string text = DateTime.Now.ToString("yyyy-MM-dd");
									text = text + " " + DateTime.Now.ToString("HH:mm:ss");
									text = text + ":" + DateTime.Now.Millisecond.ToString("000");
									this.richTextBoxInfo.AppendText(text + "  正在发送第 " + (i + 1).ToString() + " 封邮件...\n");
									this.richTextBoxInfo.Focus();
									System.Windows.Forms.Application.DoEvents();
									for (int j = 0; j < 50000; j++)
									{
										System.Windows.Forms.Application.DoEvents();
									}
									this.progressBar.Value = i;
									try
									{
										string text2 = this.listViewNote.Items[i].SubItems[3].Text;
										string text3 = this.listViewNote.Items[i].SubItems[9].Text;
										if (text3.Trim() == "")
										{
											text = DateTime.Now.ToString("yyyy-MM-dd");
											text = text + " " + DateTime.Now.ToString("HH:mm:ss");
											text = text + ":" + DateTime.Now.Millisecond.ToString("000");
											this.richTextBoxInfo.AppendText(text + "  收件人<" + text2 + ">未登记邮件地址，邮件无法发送！\n");
											this.richTextBoxInfo.SelectionStart = this.richTextBoxInfo.Text.Length;
											this.richTextBoxInfo.Focus();
											System.Windows.Forms.Application.DoEvents();
										}
										else
										{
											MailMessage mailMessage = new MailMessage();
											mailMessage.From = new MailAddress(this.strsender);
											mailMessage.To.Add(text3);
											mailMessage.Subject = "日志催交通知";
											mailMessage.Body = text2 + "，你好！请抓紧时间编写" + this.listViewNote.Items[i].Text + "的日志！";
											new SmtpClient
											{
												Host = this.strserver,
												UseDefaultCredentials = true,
												Credentials = new NetworkCredential(this.strusername, this.strpwd)
											}.Send(mailMessage);
											text = DateTime.Now.ToString("yyyy-MM-dd");
											text = text + " " + DateTime.Now.ToString("HH:mm:ss");
											text = text + ":" + DateTime.Now.Millisecond.ToString("000");
											this.richTextBoxInfo.AppendText(text + "  第 " + (i + 1).ToString() + " 封邮件发送成功！\n");
											this.richTextBoxInfo.Focus();
											System.Windows.Forms.Application.DoEvents();
										}
									}
									catch (Exception ex2)
									{
										text = DateTime.Now.ToString("yyyy-MM-dd");
										text = text + " " + DateTime.Now.ToString("HH:mm:ss");
										text = text + ":" + DateTime.Now.Millisecond.ToString("000");
										this.richTextBoxInfo.AppendText(string.Concat(new string[]
										{
											text,
											"  第 ",
											(i + 1).ToString(),
											" 封邮件发送失败！",
											ex2.Message,
											"\n"
										}));
										this.richTextBoxInfo.Focus();
										System.Windows.Forms.Application.DoEvents();
									}
									IL_5B8:
									i++;
									continue;
									goto IL_5B8;
								}
								this.progressBar.Visible = false;
								this.btnSendMail.Enabled = true;
								this.btnSendMail.Text = "邮件通知(&M)";
								MessageBox.Show("邮件发送完毕！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
								this.btnSendMail.Refresh();
							}
						}
					}
				}
			}
		}
		private void btnX_Click(object sender, EventArgs e)
		{
			this.bHasHide = true;
			this.splitContainer.SplitterDistance = this.splitContainer.Height + 200;
		}
		private void btnQueryBB_Click(object sender, EventArgs e)
		{
			this.btnExport.Enabled = false;
			this.btnSendMail.Enabled = false;
			this.btnSendMsg.Enabled = false;
			this.Text = "工作日志审核状态查询 - 报表查询";
			this.cbbNoteOwnerName.SelectedIndex = -1;
			this.btnExportExcel.Enabled = false;
			this.iPubActionCode = 4;
			if (this.cbbReportYear.SelectedIndex == -1)
			{
				MessageBox.Show("欲统计报表请先选择年份！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				this.cbbReportYear.Focus();
			}
			else
			{
				if (!this.cbbhlyf.Checked)
				{
					if (this.cbbReportMonth.SelectedIndex == -1)
					{
						MessageBox.Show("没有勾选忽略月份，那么必须选择月份！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						this.cbbReportMonth.Focus();
						return;
					}
				}
				this.QueryWorkLoadReport();
			}
		}
		private void btnExportExcel_Click(object sender, EventArgs e)
		{
			this.btnExportExcel.Text = "正在导出......";
			this.btnExportExcel.Enabled = false;
			this.btnExportExcel.Refresh();
			Microsoft.Office.Interop.Excel.Application application = null;
			_Worksheet worksheet = null;
			try
			{
				application = new ApplicationClass();
				_Workbook workbook = application.Workbooks.Add(Missing.Value);
				worksheet = (_Worksheet)workbook.ActiveSheet;
			}
			catch
			{
				this.btnExportExcel.Text = "导出Excel(&E)";
				this.btnExportExcel.Enabled = true;
				this.btnExportExcel.Refresh();
				MessageBox.Show("创建Excel进程出现错误，系统中没有安装合适版本的Microsoft Excel产品！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				return;
			}
			string[,] array = new string[1, this.listViewNote.Columns.Count];
			for (int i = 0; i < this.listViewNote.Columns.Count; i++)
			{
				array[0, i] = this.listViewNote.Columns[i].Text;
			}
			Range range = worksheet.get_Range("A1", Type.Missing);
			range = range.get_Resize(array.GetUpperBound(0) + 1, array.GetUpperBound(1) + 1);
			range.Value2 = array;
			range = worksheet.get_Range("A2", Type.Missing);
			range = range.get_Resize(this.aNoteItems.GetUpperBound(0) + 1, this.aNoteItems.GetUpperBound(1) + 1);
			range.Value2 = this.aNoteItems;
			GC.Collect();
			application.Visible = true;
			application = null;
			worksheet = null;
			this.btnExportExcel.Text = "导出Excel(&E)";
			this.btnExportExcel.Enabled = true;
			this.btnExportExcel.Refresh();
		}
	}
}
